package com.ocom.jobhandler.feign;

import com.ocom.common.constant.MqPay;
import com.ocom.common.request.payconfig.SubsidyDataRequest;
import com.ocom.common.request.payconfig.SubsidyListRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.GrantSubsidyVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mq-subsidy")
public interface MqSubsidyClientService {

    @PostMapping(MqPay.URL_grantSubsidy)
    public Result grantSubsidy(@RequestBody GrantSubsidyVo grantSubsidyVo);

    /**
     *  补贴计划列表
     */
    @PostMapping(MqPay.URL_subsidyList)
    public Result subsidyList(@RequestBody SubsidyListRequest subsidyListRequest);

    /**
     *  补贴计划列表
     */
    @PostMapping(MqPay.URL_subsidyData)
    public Result subsidyData(@RequestBody SubsidyDataRequest subsidyDataRequest);
}
